a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
print(a.index(2))
print(a.count(2))
print(len(a))
print(10 not in a)
print(10 in a)

print(a[0:3])
print(a[1:])
print(a[5])
print(a[:-1])
print(a[2:6:2])  # 打印第二位到第六位，每隔一位 step步长为2

a = [1, 2, 6, 7, 8, 9, 10, 3, 4, 5]
a.sort()
print(a)
print(list(sorted(a)))
a.reverse()
print(a)
print(list(reversed(a)))
print(min(a))
print(max(a))
print(sum(a))























